//
//  Dog.h
//  block
//
//  Created by honeyrr on 2017/12/20.
//  Copyright © 2017年 honeyrr. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Dog : NSObject

// 1.block作为对象属性
@property(nonatomic, strong) void(^block)(void);

// 2.block作为方法的参数
-(void) eat:(void (^)(NSString *food))block;

// 3.block作为返回值
-(void(^)(id))age;

// 4.扩展提升
-(void(^)(NSArray *))zoos;

@end
